<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
	.select_width{width: 142px}

</style>

<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar">&nbsp;楼宇情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td nowrap width="150px" align="right"><span class="color_red">*</span>楼宇标准名称：</td>
		<td nowrap colspan="3">
		<input name="building/zh_name" label="楼宇标准名称" type="text" id="yq_title"
			class="input_css required " style="width: 460px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/zh_name" />" />
			<input type="hidden" name="proposal/zh_title" id="proposal_zh_title" value="<x:out select="$xmlData/data/proposal/zh_title" />"/>			
		</td>
		<td nowrap align="right"><span class="color_red">*</span>楼宇性质：</td>
		<td nowrap >
			<c:set var="building_status"><x:out select="$xmlData/data/building/building_status_value" /></c:set>
			<cpt:select id="building_status"  key="building_status"  className="select_width" value="${building_status}" ></cpt:select>
			<input type="hidden" name="building/building_status_value"  class="required" value="${building_status}" label="楼宇性质">
			<input type="hidden" name="building/building_status_name" value="<x:out select="$xmlData/data/building/building_status_name" />">
		</td>
	</tr>

	<tr>
		<td nowrap align="right"><span class="color_red">*</span>占地面积：</td>
		<td nowrap >
		<input name="building/covers_area" label="占地面积" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/covers_area" />" />平方米&nbsp;</td>
	
		<td nowrap align="right"><span class="color_red">*</span>建筑面积：</td>
		<td nowrap colspan="3">
		<input name="building/building_area" label="建筑面积" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/building_area" />" />平方米&nbsp;
		</td>
		
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>楼宇高度：</td>
		<td nowrap >
		<input name="building/height" label="楼宇高度" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/height" />" />米&nbsp;</td>
	
		<td nowrap align="right"><span class="color_red">*</span>楼宇层数：</td>
		<td nowrap colspan="3">
		<input name="building/floor" label="楼宇层数" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/floor" />" />层&nbsp;
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>停车位数量：</td>
		<td nowrap >
			<input name="building/parking_spaces" label="停车位数量" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/parking_spaces" />" />辆
		
		</td>
	
		<td nowrap align="right">是否设置员工餐厅：</td>
		<td nowrap >
			<c:set var="restaurant"><x:out select="$xmlData/data/building/restaurant_value" /></c:set>
			<cpt:select id="restaurant"  key="boolean"  className="select_width" value="${restaurant}" ></cpt:select>
			<input type="hidden" id="restaurant_value" name="building/restaurant_value" value="${restaurant}" label="是否设置员工餐厅">
			<input type="hidden" name="building/restaurant_name" value="<x:out select="$xmlData/data/building/restaurant_name" />">
		</td>

		<td nowrap align="right" id="estaurant_area_title">员工餐厅面积：</td>
		<td nowrap >
			<input name="building/restaurant_area" id="restaurant_area" label="员工餐厅面积" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
				class="input_css" style="text-align:right;width: 130px;" maxlength="50"
				value="<x:out select="$xmlData/data/building/restaurant_area" />" />平方米&nbsp;
		</td>
		
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>申请资助金额：</td>
		<td nowrap colspan="5">
			<input name="building/total_funds" label="申请资助金额" type="text" onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required " style="text-align:right;width: 130px;"  id="total_funds"
			value="<x:out select="$xmlData/data/building/total_funds" />" />万元
		
		</td>
   </tr>
   <!-- 
   <tr>
   	<td  nowrap align="right"><span class="color_red">*</span>业主单位填写：</td>
   	<td colspan="5">&nbsp;&nbsp; 本公司是__________大厦的单一业主单位，根据《无锡市加快产业转型升级分项资金实施细则》的规定，申请亿元楼宇单一业主奖励。</td>
   </tr>
	 -->
</table>
<br>
<div class="t_bar">&nbsp;入驻企业情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td nowrap align="right">
			<span class="color_red">*</span>楼宇入驻企业户数：
		</td>
		<td nowrap>
		<input name="building/company_amount" label="楼宇入驻企业户数" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/company_amount" />" />户&nbsp;
		</td>
		<td nowrap align="right">
			<span class="color_red">*</span>楼宇入驻企业纳税总额：
		</td>
		<td nowrap>
		<input name="building/company_fax_total" label="楼宇入驻企业纳税总额" type="text" onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/company_fax_total" />" />万元&nbsp;
		</td>
		<td nowrap align="right">
			<span class="color_red">*</span>已出租面积合计：
		</td>
		<td nowrap>
		<input name="building/rented_area" label="已出租面积合计" type="text" onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required maxlength:50" style="text-align:right;width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/rented_area" />" />平方米&nbsp;
		</td>
	</tr>
</table>
<br>
<div class="t_bar">&nbsp;楼宇联络员信息申报</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6">
			本单位指定下述人员担任楼宇联络员，负责楼宇信息统计和报送工作。
		</td>
	</tr>
	<tr>
		<td nowrap width="100px" align="right">
			<span class="color_red">*</span>姓名：
		</td>
		<td nowrap>
		<input name="building/contact/zh_name" label="姓名" type="text" 
			class="input_css required maxlength:50" style="width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/contact/zh_name" />" />&nbsp;
		</td>
		<td nowrap width="100px" align="right">
			<span class="color_red">*</span>职位：
		</td>
		<td nowrap>
		<input name="building/contact/position" label="职位" type="text" 
			class="input_css required maxlength:50" style="width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/contact/position" />" />&nbsp;
		</td>
		<td nowrap width="100px" align="right">
			<span class="color_red">*</span>办公电话：
		</td>
		<td nowrap>
		<input name="building/contact/tel" label="办公电话" type="text" 
			class="input_css required maxlength:50" style="width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/contact/tel" />" />&nbsp;
		</td>
	</tr>
	<tr>
		<td nowrap width="100px" align="right">
			<span class="color_red">*</span>手机号码：
		</td>
		<td nowrap>
		<input name="building/contact/mobile" label="手机号码" type="text" onfocus="InitInput.setNumber(this,12,0,0)"
			class="input_css required mobile maxlength:50" style="width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/contact/mobile" />" />&nbsp;
		</td>
		<td nowrap width="100px" align="right">
			<span class="color_red">*</span>电子邮箱：
		</td>
		<td nowrap colspan="3">
		<input name="building/contact/email" label="电子邮箱" type="text" 
			class="input_css required email " style="width: 130px;" maxlength="50"
			value="<x:out select="$xmlData/data/building/contact/email" />" />&nbsp;
		</td>
		
	</tr>
</table>
<script type="text/javascript">
	$(function(){
		checkNeedArea();
		var innovation_org_name = $("#yq_title");
		var proposal_zh_title = $("#proposal_zh_title");
		innovation_org_name.bind('keyup', function(){
			proposal_zh_title.val($.trim(innovation_org_name.val()));
		});
	});
	
	function checkNeedArea() {
		var valueArea = $("#restaurant_value").val();
		if(valueArea == 1){
			$("#restaurant_area").attr("disabled",false);
			$("#restaurant_area").addClass("required");
		} else {
			$("#restaurant_area").attr("disabled",true);
			$("#restaurant_area").removeClass("required");
			$("#restaurant_area").val("");
		}
	}
	$("#restaurant").change(function(){
		checkNeedArea();
	});
</script>